Skip to main content

Install additional python libraries in FME

Add FME to the environment variable

  1. You need to add FME to your environment variables
  2. You can do so my adding the Path of the FME install to your environment
  3. In my case, FME was installed in C:\Program Files\FME
  4. Once you've added the following path to the environment varible, you can launch a new terminal and type in fme.exe python -h to see where python is installed.
  5. For me, it was installed in C:\Program Files\FME\fmepython39

Installing additional packages

⚠️ Since the python packages are going to be installed in C:\Program Files, you need to launch the command prompt or Terminal with Admin privileges.

  1. Once the environment variable is configured correctly you can run this command to install any additional package
fme.exe python -m pip install <your-package-name> --target "C:\Program Files\FME\fmepython39"

Some commands for installing frequently used libraries

fme.exe python -m pip install numpy --target "C:\Program Files\FME\fmepython39"
fme.exe python -m pip install pandas --target "C:\Program Files\FME\fmepython39"
fme.exe python -m pip install xgbse --target "C:\Program Files\FME\fmepython39"
fme.exe python -m pip install xgboost --target "C:\Program Files\FME\fmepython39"
fme.exe python -m pip install lightgbm --target "C:\Program Files\FME\fmepython39"